import Vue from 'vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './utils/aliplayer';


import { library } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';

import { faBold,faItalic,faHeading,faListUl,faListOl,faUndo,faRedo, faPaperPlane,faEllipsis,faChevronRight,faChevronDown} from '@fortawesome/free-solid-svg-icons'
library.add(faBold,faItalic,faHeading,faListUl,faListOl,faUndo,faRedo,faPaperPlane,faEllipsis,faChevronRight,faChevronDown);

import App from './App.vue'
import router from './router'


router.afterEach((to, from, next) => {
  window.scrollTo(0, 0);
})

import store from "./store";

import api from './api';
import './styles/global.scss';

Vue.use(ElementUI);
Vue.prototype.$api = api;
Vue.component('font-awesome-icon', FontAwesomeIcon);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
